package fi.foyt.cs.android.ui;

import fi.foyt.cs.android.R;
import fi.foyt.cs.android.Settings;
import fi.foyt.cs.android.client.CriminalSoulsClient;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class MainActivity extends Activity {

  
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    Settings.initSettings(getResources());
  }
  
  @Override
  protected void onStart() {
    super.onStart();

    if (!CriminalSoulsClient.getInstance().isAuthorized()) {
      Intent loginIntent = new Intent(this, LoginActivity.class);
      startActivity(loginIntent);
    }
  }
  
}
